//
//  UIFont+D_Font.m
//  EraserRubber_2_SaijT
//
//  Created by 丁诚昊 on 15/12/2.
//  Copyright © 2015年 ZSTech.iOS.丁诚昊(831). All rights reserved.
//

#import "UIFont+D_Font.h"

@implementation UIFont (D_Font)
+(UIFont*) randomFontWithSize:(NSUInteger)size
{
    NSArray* fontFamily = [UIFont familyNames];
    u_int32_t idx = arc4random_uniform((u_int32_t)size);
    return [UIFont fontWithName:fontFamily[idx] size:size];
}
@end
